import Vue from 'vue'
import App from './App.vue'
import router from './router/router'
import store from './vuex/vuex'
import {Button,Swipe,SwipeItem,Lazyload,Cell,CellGroup,Popup} from 'vant'
import './assets/css/base.css'
import './assets/ico/style.css'
import axios from 'axios'
Vue.config.productionTip = false

Vue.prototype.bus=new Vue()//定义中间变量，用于组件传值

axios.defaults.baseURL = 'http://localhost:3000';
Vue.prototype.$axios = axios;

Vue.use(Button);
Vue.use(Swipe);
Vue.use(SwipeItem);
Vue.use(Lazyload);
Vue.use(Cell);
Vue.use(CellGroup);
Vue.use(Popup);

new Vue({
  router,
  store,
  render: h => h(App),
}).$mount('#app')
